class Point{
    int x,y;
    Point(){
        x=1;
        y=1;
    }
    Point(int a,int b){
        x=a;
        y=b;
    }
    double distance() {
        double distance=Math.sqrt(x*x+y*y);
        return distance;
    }
}


public class Point2_3 {
    public static void main(String args[]) {
        Point poi=new Point(4,4);
        System.out.println(poi.distance());
    }
}
